//
//  ADSuyiCustomAdapterTestNativeAdView.m
//  ADSuyiCustomPlatform
//
//  Created by Erik on 2021/9/7.
//

#import "ADSuyiCustomAdapterTestNativeAdView.h"

@interface ADSuyiCustomAdapterTestNativeAdView ()

@end

@implementation ADSuyiCustomAdapterTestNativeAdView

#pragma mark - life crycle
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}

#pragma mark - setter

- (void)setAdView:(UIView *)adView {
    _adView = adView;
    [self addSubview:_adView];
}


#pragma mark - ADSuyiAdapterNativeAdViewDelegate

- (void)adsy_registViews:(NSArray<UIView *> *)clickViews {
    [self.delegate adsyCustomNativeViewRenderSuccess:self];
}

- (void)adsy_unRegistView {
    
}

- (ADSuyiAdapterRenderType)renderType {
    return ADSuyiAdapterRenderTypeExpress;
}

- (ADSuyiAdapterNativeAdData *)data {
    return nil;
}

- (nullable UIView *)adsy_mediaViewForWidth:(CGFloat)width {
    return nil;
}


- (BOOL)adsy_closeButtonExist {
    // 是否存在关闭按钮
    return YES;
}

#pragma mark - ADSuyiAdViewInfoProtocol

- (ADSuyiAdapterPlatform)adsy_platform {
    return @"toutiao";
}




@end
